<?php


namespace App\Http\Controllers\android\model;


use Illuminate\Support\Facades\DB;

class SettingModel
{
    public static function add($param){
        return DB::table('t_setting')->insert($param);
    }

    public static function queryFirst($where,$field){
        return DB::table('t_setting')->where($where)->first($field);
    }

    public static function queryLikeFirst($where,$field){
        return DB::table('t_setting')->where("$where[field]",'like','%'.$where["$where[field]"].'%')->first($field);
    }
}